<?php 

function page_design(){
$aaaa = detail_header_view( '#FFFFFF'  );
$aaaa .= detail_rows_view( '<b>Total karyawan</b>' ,  ': 214 Orang' ,false , "50%", "50%");
$aaaa .= detail_rows_view( '<b>Aktif</b>' , ': 172 Orang', false , "50%", "50%" );
$aaaa .= detail_rows_view( '<b>Sedang cuti</b>' ,': 12 Orang' ,false , "50%", "50%"); 
$aaaa .= detail_rows_view( '<b>Tugas luar</b>' , ': 30 Orang' ,false , "50%", "50%"); 
$aaaa .= detail_rows_view( '<b>Persiapan pensiun</b>' , ': 10 Orang' ,false , "50%", "50%"); 
$aaaa .= detail_rows_view( '<b>Prestasi kerja</b>' , ': 2,7 (4)' ,false , "50%", "50%"); 
$aaaa .= detail_footer_view();
$design1 ='<div style="background:#fff;width:95%;height:100%;text-align:left;border:2px solid orange;padding:3px;">
<div class="title_welcome_box">Sort link</div><br/>   
 
</div>';



$design2 ='<div style="background:#fff;width:95%;height:100%;text-align:left;border:2px solid orange;padding:3px;">
<div class="title_welcome_box">Data Karyawan</div><br/>   '.$aaaa.' 
 
</div>';


$design3 ='<div style="background:#fff;width:95%;height:100%;text-align:left;border:2px solid orange;padding:3px;">
<div class="title_welcome_box">Perbandingan gender</div>    <br/> 
 <img src="index.php?com=graph&task=gender"   />
</div>';
$design4 ='<div style="background:#fff;width:98%;height:100%;text-align:left;border:2px solid orange;padding:3px;">
 '.view_tab().'
</div>';
 
$view = '<div style="width:900px;text-align:center;">';
$view .= '<div style="width: 295px;padding:2px; height: 240px;text-align:left;float:left;">'.$design1.'</div>';
$view .= '<div style="width: 298px;padding:2px; height: 240px;text-align:left;float:left;">'.$design2.'</div> ';
$view .= '<div style="width: 295px;padding:2px; height: 240px;text-align:left;float:right;">'.$design3.'</div> ';
$view .= '<div style="clear:both"></div><br/>';
$view .= '<div style="width: 900px;padding:2px; height: 380px;text-align:left;">'.$design4.'</div> '; 
$view .= '<div style="clear:both"></div>';
$view .= '</div>';

return $view;
}

 function calendarView(){
	my_set_file_css(array('components/calendar/styles/calendar.css'));
	include "components/calendar/includes/PHP4/calendar.php";
	$calendar = new Calendar("cal1");
	$calendar->Output(); 
	return $calendar->Output(); 
}